package com.zzj.ecology.framework.exception;


import com.zzj.ecology.common.enums.LoginResultEnum;

/**
 * @ClassName LoginException
 * @Description TODO
 * @Author zhijun zeng at 2020/2/29
 * @Version 1.0
 **/
public class LoginException extends RuntimeException {

    private String code;//异常代码
    private String name;//异常名称

    public LoginException(LoginResultEnum lre) {
        super(lre.getName());
        this.code = lre.getCode();
        this.name = lre.getName();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
